package io.bitmax.library.mvp;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * Created by gongdongyang on 2018/9/18.
 */

public abstract class BaseFragmentPresenter<V extends IBaseUI> extends BasePresenter<V> {

    private BaseMVPFragment fragment;


    public void onAttach(Context context, BaseMVPFragment fragment) {
        this.fragment = fragment;
    }

    public void onActivityCreated(Bundle savedInstanceState) {
    }

    public void onDestroyView() {
    }

    public void onDetach() {

    }

    public BaseMVPFragment getFragment() {
        return fragment;
    }


    public void onCreate(Bundle savedInstanceState) {

    }
}

